package system

import (
	"fiberx/internal/global/response"

	"github.com/gofiber/fiber/v3"
)

func (c *ControllerV1) GetGuestInfo(ctx fiber.Ctx) error {
	res, err := c.system.GetGuestInfo(ctx)
	if err != nil {
		return response.RES.JSON(ctx, response.FAIL)

	}
	return response.RES.JSON(ctx, response.OK, response.WithData(res))
}
